<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/12/20
 * Time: 15:38
 * 查询抄送相关数据
 */

$useid = $route->restfulParams['userid'];

if(!$route->restfulParams['count']){
    $sql = "SELECT * FROM `art_oa_financial_declare` WHERE `ofd_copy_user`IN (".$useid.")";
}else{
    $sql = "SELECT COUNT(*) as num FROM `art_oa_financial_declare` WHERE `ofd_copy_user`IN (".$useid.") and ofd_status = 2";
}

$re=$db->mysqlDB->query($sql);

$rs = array("data" => $re);
//返回成功结果
$response->responseData(true, $rs);